package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum UserType {
    SUPER_ADMIN(1,"超级管理员"), ADMIN(5,"区域加盟商"), TEAM_BIZ(4,"团队商家"), NORMAL_BIZ(3,"普通商家"), NORMAL_USER(2,"普通用户"),
    PERSONAL_PRIMARY(1001, "个人-初级认证"), PERSONAL_MIDDLE(1002, "个人-中级认证"), PERSONAL_SENIOR(1003, "个人-高级认证"),
    PERSONAL_MASTER(1004, "个人-大师认证"), PERSONAL_DIRECTOR(1005, "个人-总监认证"), PERSONAL_CROWN(1006, "个人-皇冠认证"),
    PERSONAL_KING(1007, "个人-金冠认证"), TEAM_STAR_ONE(2001, "团队-一星白银团队"), TEAM_STAR_TWO(2002, "团队-二星黄金团队"),
    TEAM_STAR_THREE(2003, "团队-三星白金团队"), TEAM_STAR_FOUR(2004, "团队-四星钻石团队"), TEAM_STAR_FIVE(2005, "团队-五星大师团队"),
    TEAM_STAR_SIX(2006, "团队-六星皇冠团队"), TEAM_STAR_SEVEN(2007, "团队-七星至尊团队");

    private int code;
    private String name;
    UserType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<UserType> getAllData(){
        List<UserType> result = new ArrayList<UserType>();
        for (UserType current : UserType.values())
        {
            result.add(current);
        }
        return result;
    }

//    STANDARD(2),
//    LDAP(1);
//
//    private Integer typeValue;
//
//    UserType(Integer typeValue) {
//        this.typeValue = typeValue;
//    }
//
//    public Integer getTypeValue() {
//        return typeValue;
//    }
//
//    public void setTypeValue(Integer typeValue) {
//        this.typeValue = typeValue;
//    }
}
